package com.java8.lambda.dome;

public class test8 {

    public static void master() {
        System.out.println("-----------------test8.master()-----------------");

        new Thread(new Runnable() {
            @Override
            public void run() {
                //handler.
                System.out.println("Runnable:在这里处理耗时的业务");
            }
        }).start();


        new Thread(() -> {
            //handler.
            System.out.println("lambda.Runnable:在这里处理耗时的业务");
        }).start();

    }
}
